package cn.findviewbydream.evil.main.service;

import cn.findviewbydream.evil.main.entity.BaseMealTypeEntity;
import cn.findviewbydream.evil.main.entity.BaseTypeOfWorkEntity;
import cn.findviewbydream.evil.main.entity.MealEntity;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.util.List;

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.main.service
 * 时间：17-2-23
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：
 ********************************************/
public interface SettingMealService
{
    List<BaseMealTypeEntity> getBaseMealTypeList();

    boolean postNewBaseMealType(String type);

    boolean postBaseMealTypeState(int id, boolean state);

    boolean postBaseMealType(int id, String type);

    List<MealEntity> getMealList(Integer typeId);

    boolean postMealMarket(int mealId, boolean market);

    MealEntity getMeal(int mealId);

    List<BaseMealTypeEntity> getMealTypeList();

    List<BaseTypeOfWorkEntity> getCookTypeList();

    Boolean postNewMeal(String name, String synopsis, Integer mealTypeId, Integer typeOfWorkId, Float price,
                        Float cost, Integer mealMonthStart, Integer mealMonthEnd, CommonsMultipartFile img)
            throws Exception;

    Boolean postMeal(int id, String name, String synopsis, Integer mealTypeId, Integer typeOfWorkId, Float price,
                     Float cost, Integer mealMonthStart, Integer mealMonthEnd, CommonsMultipartFile img)
            throws Exception;
}
